<?php $this->load->view('tourism/layout/header') ?>
<div class="talk-head flex">
    <a href="javascript:goHistoryBack();" class="talk-return">
        <i class="iconfont icon-zuojiantou"></i>
    </a>
    <div class="talk-thes flex-1">
        商品评价
    </div>
</div>
<div class="talk-text widthMax">
    <div class="talk-h5 flex reviews-score">
        <a href="<?php echo site_url('tourism/goods/ajaxReview').'?goodsAttrId='.$goodsAttrId;?>" <?php if(empty($flag)):?>class="active"<?php endif;?>>全部<?php echo $reviewTotal->countReviews;?></a>
        <a href="<?php echo site_url('tourism/goods/ajaxReview').'?flag=1&goodsAttrId='.$goodsAttrId;?>">好评 <?php echo $reviewTotal->goodReviews;?></a>
        <a href="<?php echo site_url('tourism/goods/ajaxReview').'?flag=2&goodsAttrId='.$goodsAttrId;?>">中评 <?php echo $reviewTotal->mediumReviews;?></a>
        <a href="<?php echo site_url('tourism/goods/ajaxReview').'?flag=3&goodsAttrId='.$goodsAttrId;?>">差评 <?php echo $reviewTotal->poorReviews;?></a>
    </div>
    <?php if($review->num_rows() > 0):?>
    <div class="talk-list product-reviews">
         <?php $this->load->view('tourism/goods/ajaxreview')?>
    </div>
    <?php if ($total > 15) : ?>
    <div class="sec-load am-scrollspy-init" id="reviews-more" pg="1">
         <i class="iconfont am-animation-spin">&#xe62f;</i>
    </div>
    <?php endif;?>
    <div class="no-more am-hide">
        没有更多了
    </div>
    <?php endif;?>
</div>
<?php $this->load->view('tourism/layout/footer') ?>